package com.dandan.tzx.activity;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.webkit.WebView;

import com.alibaba.android.arouter.facade.annotation.Route;
import com.dandan.tzx.routerhelper.R;

/**
 * Created by tanzhenxing
 * Date: 2017/12/26 上午10:44
 * Description:
 */

@Route(path = WebViewActivity.PATH)
public class WebViewActivity extends BaseActivity {
    public static final String PATH = "/activity/WebViewActivity";
    private WebView mWebView;
    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_webview);
        setTitle(TAG);
        mWebView = (WebView) findViewById(R.id.web_view);
        mWebView.loadUrl("file:///android_asset/example.html");
        mWebView.getSettings().setJavaScriptEnabled(true);
    }
}
